import os

ip_notes="172.18.58.2"
ip_sap="172.18.255.18"
ip_office="172.18.241.77"
ip_to_pm4="172.18.247.77"

def net_test(ip):
    return os.system("ping"+' '+ip)
if not net_test(ip_notes):
    print('Net to notes serivce : ok!')
else:
    print('Net to notes serivce : false!')

if not net_test(ip_sap):
    print('Net to sap serivce : ok!')
else:
    print('Net to sap serivce : false!')
    
if not net_test(ip_office):
    print('Net to office serivce : ok!')
else:
    print('Net to office serivce : false!')

if not net_test(ip_to_pm4):
    print('Net to to_pm4 serivce : ok!')
else:
    print('Net to to_pm4 serivce : false!')

Quit=input("Quit...")
